.class public Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;
.super Landroid/view/View;
.source "RangeSeekBar.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;
    }
.end annotation


# instance fields
.field private a:Z

.field private b:Z

.field private c:I

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private h:I

.field private i:Landroid/graphics/Paint;

.field private j:Landroid/graphics/Bitmap;

.field private k:Landroid/graphics/RectF;

.field private l:Landroid/graphics/Paint;

.field private m:Landroid/graphics/Bitmap;

.field private n:Landroid/graphics/Bitmap;

.field private o:Landroid/graphics/Bitmap;

.field private p:Landroid/graphics/Bitmap;

.field private q:I

.field private r:Landroid/graphics/Paint;

.field private s:Landroid/graphics/RectF;

.field private t:Landroid/graphics/RectF;

.field private u:I

.field private v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p2, 0x0

    .line 4
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->c:I

    .line 5
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    .line 6
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->g:I

    .line 7
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->h:I

    const/high16 p3, -0x4d000000

    .line 8
    iput p3, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->q:I

    .line 9
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->u:I

    .line 10
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(Landroid/content/Context;)V

    return-void
.end method

.method public static a(I)I
    .locals 2

    .line 30
    invoke-static {}, Landroid/content/res/Resources;->getSystem()Landroid/content/res/Resources;

    move-result-object v0

    int-to-float p0, p0

    .line 31
    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v1, p0, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result p0

    float-to-int p0, p0

    return p0
.end method

.method private a(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    .line 2
    sget v0, Les/w4;->durec_stitch_top_slider_normal:I

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->m:Landroid/graphics/Bitmap;

    .line 3
    sget v0, Les/w4;->durec_stitch_top_slider_press:I

    invoke-static {p1, v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->n:Landroid/graphics/Bitmap;

    .line 4
    sget v0, Les/w4;->durec_stitch_bottom_slider_normal:I

    invoke-static {p1, v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->o:Landroid/graphics/Bitmap;

    .line 5
    sget v0, Les/w4;->durec_stitch_bottom_slider_press:I

    invoke-static {p1, v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->p:Landroid/graphics/Bitmap;

    .line 6
    sget v0, Les/w4;->durec_stitch_line:I

    invoke-static {p1, v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->j:Landroid/graphics/Bitmap;

    return-void
.end method

.method private a(Landroid/graphics/Canvas;Z)V
    .locals 3

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->i:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    .line 20
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->i:Landroid/graphics/Paint;

    .line 21
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->k:Landroid/graphics/RectF;

    if-nez v0, :cond_1

    .line 22
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->k:Landroid/graphics/RectF;

    const/4 v1, 0x0

    .line 23
    iput v1, v0, Landroid/graphics/RectF;->left:F

    .line 24
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v1

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    :cond_1
    if-eqz p2, :cond_2

    .line 25
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->k:Landroid/graphics/RectF;

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    int-to-float v1, v0

    iput v1, p2, Landroid/graphics/RectF;->top:F

    .line 26
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getLineHeight()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    add-int/2addr v0, v1

    int-to-float v0, v0

    iput v0, p2, Landroid/graphics/RectF;->bottom:F

    goto :goto_0

    .line 27
    :cond_2
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->k:Landroid/graphics/RectF;

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    int-to-float v1, v0

    iput v1, p2, Landroid/graphics/RectF;->bottom:F

    .line 28
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getLineHeight()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    sub-int/2addr v0, v1

    int-to-float v0, v0

    iput v0, p2, Landroid/graphics/RectF;->top:F

    .line 29
    :goto_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->j:Landroid/graphics/Bitmap;

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->k:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->i:Landroid/graphics/Paint;

    invoke-virtual {p1, p2, v0, v1, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    return-void
.end method

.method public static a(III)Z
    .locals 0

    if-le p0, p1, :cond_0

    if-ge p0, p2, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method

.method private b(II)I
    .locals 4

    .line 1
    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result p1

    const/4 v0, 0x2

    div-int/2addr p1, v0

    const/4 v1, 0x1

    if-ge p2, p1, :cond_1

    .line 2
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v2

    mul-int/lit8 v2, v2, 0x2

    sub-int/2addr p1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v3

    add-int/2addr v2, v3

    invoke-static {p2, p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(III)Z

    move-result p1

    if-eqz p1, :cond_0

    return v0

    .line 3
    :cond_0
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v2

    sub-int/2addr p1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    invoke-static {p2, p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(III)Z

    move-result p1

    if-eqz p1, :cond_3

    return v1

    .line 4
    :cond_1
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v2

    sub-int/2addr p1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v3

    mul-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    invoke-static {p2, p1, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(III)Z

    move-result p1

    if-eqz p1, :cond_2

    return v1

    .line 5
    :cond_2
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v1

    mul-int/lit8 v1, v1, 0x2

    sub-int/2addr p1, v1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v2

    add-int/2addr v1, v2

    invoke-static {p2, p1, v1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(III)Z

    move-result p1

    if-eqz p1, :cond_3

    return v0

    :cond_3
    const/4 p1, 0x0

    return p1
.end method

.method private b(Landroid/graphics/Canvas;Z)V
    .locals 3

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->r:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    .line 7
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->r:Landroid/graphics/Paint;

    .line 8
    sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->r:Landroid/graphics/Paint;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->q:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 10
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->s:Landroid/graphics/RectF;

    if-nez v0, :cond_1

    .line 11
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->s:Landroid/graphics/RectF;

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMaskLeftOrRightMargin()I

    move-result v1

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->left:F

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->s:Landroid/graphics/RectF;

    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v1

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMaskLeftOrRightMargin()I

    move-result v2

    sub-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    .line 14
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->s:Landroid/graphics/RectF;

    const/high16 v1, -0x40800000    # -1.0f

    iput v1, v0, Landroid/graphics/RectF;->top:F

    .line 15
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->t:Landroid/graphics/RectF;

    if-nez v0, :cond_2

    .line 17
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->t:Landroid/graphics/RectF;

    .line 18
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMaskLeftOrRightMargin()I

    move-result v1

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->left:F

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->t:Landroid/graphics/RectF;

    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v1

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMaskLeftOrRightMargin()I

    move-result v2

    sub-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    .line 20
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->t:Landroid/graphics/RectF;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->top:F

    .line 21
    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result v1

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    if-eqz p2, :cond_3

    .line 22
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->s:Landroid/graphics/RectF;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->r:Landroid/graphics/Paint;

    invoke-virtual {p1, p2, v0}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    goto :goto_0

    .line 23
    :cond_3
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->t:Landroid/graphics/RectF;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->r:Landroid/graphics/Paint;

    invoke-virtual {p1, p2, v0}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    :goto_0
    return-void
.end method

.method private c(Landroid/graphics/Canvas;Z)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->l:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->l:Landroid/graphics/Paint;

    :cond_0
    const/4 v0, 0x1

    const/4 v1, 0x2

    if-eqz p2, :cond_2

    .line 3
    iget p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-ne p2, v0, :cond_1

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->n:Landroid/graphics/Bitmap;

    .line 5
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v2

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSlideWidth()I

    move-result v3

    sub-int/2addr v2, v3

    div-int/2addr v2, v1

    int-to-float v1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    sub-int/2addr v2, v0

    int-to-float v0, v2

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->l:Landroid/graphics/Paint;

    .line 6
    invoke-virtual {p1, p2, v1, v0, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->m:Landroid/graphics/Bitmap;

    .line 8
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v2

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSlideWidth()I

    move-result v3

    sub-int/2addr v2, v3

    div-int/2addr v2, v1

    int-to-float v1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    sub-int/2addr v2, v0

    int-to-float v0, v2

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->l:Landroid/graphics/Paint;

    .line 9
    invoke-virtual {p1, p2, v1, v0, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_0

    .line 10
    :cond_2
    iget p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-ne p2, v1, :cond_3

    .line 11
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->p:Landroid/graphics/Bitmap;

    .line 12
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v2

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSlideWidth()I

    move-result v3

    sub-int/2addr v2, v3

    div-int/2addr v2, v1

    int-to-float v1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v3

    sub-int/2addr v2, v3

    add-int/2addr v2, v0

    int-to-float v0, v2

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->l:Landroid/graphics/Paint;

    .line 14
    invoke-virtual {p1, p2, v1, v0, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_0

    .line 15
    :cond_3
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->o:Landroid/graphics/Bitmap;

    .line 16
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v2

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSlideWidth()I

    move-result v3

    sub-int/2addr v2, v3

    div-int/2addr v2, v1

    int-to-float v1, v2

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    .line 17
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result v3

    sub-int/2addr v2, v3

    add-int/2addr v2, v0

    int-to-float v0, v2

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->l:Landroid/graphics/Paint;

    .line 18
    invoke-virtual {p1, p2, v1, v0, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    :goto_0
    return-void
.end method

.method private getLineHeight()I
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->g:I

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(I)I

    move-result v1

    add-int/2addr v1, v0

    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->g:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->g:I

    return v0
.end method

.method private getMaskLeftOrRightMargin()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->u:I

    if-nez v0, :cond_0

    const/16 v0, 0xa

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(I)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->u:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->u:I

    return v0
.end method

.method private getMinBitmapHeight()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->h:I

    if-nez v0, :cond_0

    const/16 v0, 0x1e

    .line 2
    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(I)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->h:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->h:I

    return v0
.end method

.method private getSlideWidth()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    return v0
.end method

.method private getSliderHeight()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    return v0
.end method


# virtual methods
.method public a(II)V
    .locals 2

    .line 7
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 8
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    const/4 p2, 0x0

    if-gez p1, :cond_0

    .line 9
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 10
    :cond_0
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->c:I

    if-lt p1, v0, :cond_1

    .line 11
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    .line 12
    :cond_1
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMinBitmapHeight()I

    move-result v1

    sub-int/2addr v0, v1

    const/4 v1, 0x1

    if-lt p1, v0, :cond_2

    .line 13
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMinBitmapHeight()I

    move-result v0

    sub-int/2addr p1, v0

    sub-int/2addr p1, v1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 14
    :cond_2
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    if-gez p1, :cond_3

    .line 15
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 16
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    if-eqz p1, :cond_4

    .line 17
    iget p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-interface {p1, p0, p2, v1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->b(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;IZ)V

    .line 18
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    iget p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-interface {p1, p0, p2, v1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->a(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;IZ)V

    :cond_4
    return-void
.end method

.method public onDraw(Landroid/graphics/Canvas;)V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    .line 2
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(Landroid/graphics/Canvas;Z)V

    .line 3
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->c(Landroid/graphics/Canvas;Z)V

    .line 4
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->b(Landroid/graphics/Canvas;Z)V

    .line 5
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->b:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    .line 6
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a(Landroid/graphics/Canvas;Z)V

    .line 7
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->c(Landroid/graphics/Canvas;Z)V

    .line 8
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->b(Landroid/graphics/Canvas;Z)V

    .line 9
    :cond_1
    invoke-virtual {p0}, Landroid/view/View;->invalidate()V

    return-void
.end method

.method protected onSizeChanged(IIII)V
    .locals 0

    .line 1
    iput p2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    .line 3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz p1, :cond_8

    if-eq p1, v3, :cond_5

    const/4 v0, 0x2

    if-eq p1, v0, :cond_3

    const/4 v0, 0x3

    if-eq p1, v0, :cond_0

    goto/16 :goto_2

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    if-eqz p1, :cond_2

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-eqz v0, :cond_2

    if-ne v0, v3, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    .line 5
    :goto_0
    invoke-interface {p1, v0, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->a(ZZ)V

    .line 6
    :cond_2
    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    .line 7
    invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    invoke-interface {p1, v2}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    goto :goto_2

    .line 8
    :cond_3
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-ne p1, v3, :cond_4

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result p1

    div-int/2addr p1, v0

    int-to-float p1, p1

    sub-float/2addr v1, p1

    float-to-int p1, v1

    .line 10
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setTopLineY(I)V

    goto :goto_2

    :cond_4
    if-ne p1, v0, :cond_a

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getSliderHeight()I

    move-result p1

    div-int/2addr p1, v0

    int-to-float p1, p1

    add-float/2addr v1, p1

    float-to-int p1, v1

    .line 12
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->setBottomLineY(I)V

    goto :goto_2

    .line 13
    :cond_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    if-eqz p1, :cond_7

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-eqz v0, :cond_7

    if-ne v0, v3, :cond_6

    const/4 v0, 0x1

    goto :goto_1

    :cond_6
    const/4 v0, 0x0

    .line 14
    :goto_1
    invoke-interface {p1, v0, v2}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->a(ZZ)V

    .line 15
    :cond_7
    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    .line 16
    invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    invoke-interface {p1, v2}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    goto :goto_2

    :cond_8
    float-to-int p1, v0

    float-to-int v0, v1

    .line 17
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->b(II)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-eqz p1, :cond_a

    .line 18
    invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    invoke-interface {p1, v3}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 19
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    if-eqz p1, :cond_a

    .line 20
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->f:I

    if-ne v0, v3, :cond_9

    const/4 v2, 0x1

    :cond_9
    invoke-interface {p1, v2, v3}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->a(ZZ)V

    :cond_a
    :goto_2
    return v3
.end method

.method public setBottomLineY(I)V
    .locals 2

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMinBitmapHeight()I

    move-result v1

    add-int/2addr v0, v1

    const/4 v1, 0x1

    if-ge p1, v0, :cond_0

    .line 3
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMinBitmapHeight()I

    move-result v0

    add-int/2addr p1, v0

    add-int/2addr p1, v1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    .line 4
    :cond_0
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->c:I

    if-lt p1, v0, :cond_1

    .line 5
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    if-eqz p1, :cond_2

    .line 7
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-interface {p1, p0, v0, v1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->a(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;IZ)V

    :cond_2
    return-void
.end method

.method public setBottomSliderEnable(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->b:Z

    .line 2
    invoke-virtual {p0}, Landroid/view/View;->invalidate()V

    return-void
.end method

.method public setMaskColor(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->q:I

    return-void
.end method

.method public setOnSeekBarChangeListener(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    return-void
.end method

.method public setScopeHeight(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->c:I

    return-void
.end method

.method public setTopLineY(I)V
    .locals 2

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMinBitmapHeight()I

    move-result v1

    sub-int/2addr v0, v1

    const/4 v1, 0x1

    if-lt p1, v0, :cond_0

    .line 3
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->e:I

    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->getMinBitmapHeight()I

    move-result v0

    sub-int/2addr p1, v0

    sub-int/2addr p1, v1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 4
    :cond_0
    iget p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    if-gez p1, :cond_1

    const/4 p1, 0x0

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->v:Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;

    if-eqz p1, :cond_2

    .line 7
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->d:I

    invoke-interface {p1, p0, v0, v1}, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar$a;->b(Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;IZ)V

    :cond_2
    return-void
.end method

.method public setTopSliderEnable(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/RangeSeekBar;->a:Z

    .line 2
    invoke-virtual {p0}, Landroid/view/View;->invalidate()V

    return-void
.end method
